package com.xkstream.client.api.kt

import com.xkstream.client.utils.RetrofitUtil

/**
 * Created by xiaoyi on 2017-11-4.
 */
class MyZoneApi {
    var service: MyZoneService? = null

    constructor() {
        service = RetrofitUtil.getRetrofit().create(MyZoneService::class.java)
    }

    companion object {
        fun getInstance(): MyZoneApi {
            return InnerHolder.sInstance
        }
    }

    class InnerHolder {
        companion object {
            val sInstance: MyZoneApi = MyZoneApi()
        }
    }
}